from rest_framework import serializers

from diarys.models import Diary


class DiarySerializer(serializers.ModelSerializer):
    class Meta:
        model = Diary
        fields = ('id', 'date', 'weather', 'content', 'title', 'tags')
